package com.sixfoot.facade.user;

import com.sixfoot.domain.Role;
import com.sixfoot.foundation.persistence.UUIDBaseModel;

import java.util.Set;

public class UserDto extends UUIDBaseModel {
	private String username;
	private String password;
	private Boolean locked;
	private String realName;
	/**用户所拥有的角色*/
	private Set<Role> roles;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Boolean getLocked() {
		return locked;
	}
	public void setLocked(Boolean locked) {
		this.locked = locked;
	}
//	public Set<RoleVo> getRoles() {
//		return roles;
//	}
//	public void setRoles(Set<RoleVo> roles) {
//		this.roles = roles;
//	}


	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String toString() {
		return this.getRealName();
	}
	
}
